package com.zs.controller;

import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;

import org.springframework.util.Assert;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import net.sf.jasperreports.engine.JRException;
import net.sf.jasperreports.engine.JasperFillManager;
import net.sf.jasperreports.engine.JasperPrint;

@RestController
@RequestMapping("/demo")
public class dataToJasperSoftController {
	
	@GetMapping("/jasper")
	public void getReport() throws JRException {
		Map<String, Object> map = new HashMap<String, Object>();
		String str = " ";
		String jasperPrint = JasperFillManager.fillReportToFile(str, map);
	}
	
	
}
